package com.way.jacoco.entity.animal;

/**
 * FileName: Cat.java <br>
 * Description : description <br>
 * Create Time: 2021/11/15 16:15 <br>
 * Update Time: 2021/11/15 16:15 <br>
 *
 * @author <a href='wei.wang@ecarx.com.cn'>wei Wang</ a>
 * @since 2.0.0
 */
public class Cat extends AbAnimal{

    private static final String TAG = "Cat";

    public Cat(String name) {
        super(name);
    }

    public String say(String words){
        words = "喵...喵...喵..."+words;
        System.out.println(String.format("%s#say: %s", TAG, words));
        if (getVoiceListener()!=null)getVoiceListener().onSay(words);
        return words;
    }
}
